.class Lcom/nemustech/regina/ReginaCheckForUpdate$5;
.super Landroid/os/Handler;
.source "ReginaCheckForUpdate.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ReginaCheckForUpdate;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaCheckForUpdate;)V
    .locals 0
    .parameter

    .prologue
    .line 161
    iput-object p1, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6
    .parameter "msg"

    .prologue
    .line 164
    iget-object v3, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    const/high16 v4, 0x7f09

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewSwitcher;

    .line 165
    .local v0, switcher:Landroid/widget/ViewSwitcher;
    invoke-virtual {v0}, Landroid/widget/ViewSwitcher;->showNext()V

    .line 168
    iget v3, p1, Landroid/os/Message;->what:I

    packed-switch v3, :pswitch_data_0

    .line 183
    :goto_0
    return-void

    .line 170
    :pswitch_0
    const-string v3, "ReginaCheckForUpdate"

    const-string v4, "Show Regina components which can be updated."

    iget-object v5, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-static {v5}, Lcom/nemustech/regina/ReginaCheckForUpdate;->access$100(Lcom/nemustech/regina/ReginaCheckForUpdate;)Z

    move-result v5

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 171
    iget-object v3, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    iget-object v4, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->getAvailableUpdateItem()I

    move-result v4

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->setStatus(I)V

    goto :goto_0

    .line 174
    :pswitch_1
    const-string v3, "ReginaCheckForUpdate"

    const-string v4, "Failed to parse XML!!"

    iget-object v5, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-static {v5}, Lcom/nemustech/regina/ReginaCheckForUpdate;->access$100(Lcom/nemustech/regina/ReginaCheckForUpdate;)Z

    move-result v5

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 175
    iget-object v3, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    const v4, 0x7f090002

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 176
    .local v1, tv:Landroid/widget/TextView;
    const v3, 0x7f070065

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(I)V

    .line 177
    iget-object v3, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$5;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    const v4, 0x7f090003

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    .line 178
    .local v2, updateAll:Landroid/widget/Button;
    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_0

    .line 168
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
